//自动加载所有VUE组件
let routes = (r => {
	let result = [];
	r.keys().forEach((key) => {
		result.push({
			path: '/setting' + key.substring(1, key.indexOf('.vue')),
			component: r(key).default,
		});
	});
	return result;
})(require.context('./', true, /\.vue$/));

export default [
	...routes
];